<?php
/* @var $this CustomerBusinessController */
/* @var $model CustomerBusiness */

$this->breadcrumbs=array(
	'Customer Corporate'=>array('index'),
		//array('label'=>'ticket-'.$model->ticket, 'url'=>array('ticket/view', 'id'=>$model->ticteid)),
	$model->id,
);

if ((Yii::app()->user->type==="Admin")) {

$this->menu=array(
	array('label'=>'Manage', 'url'=>array('admin')),
	array('label'=>'List', 'url'=>array('index')),
	array('label'=>'Delete', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'Update', 'url'=>array('update', 'id'=>$model->id)),
	array('label'=>'Create', 'url'=>array('create')),
	array('label'=>'Add Ticket', 'url'=>array('/ticket/create', 'id'=>$model->id)),
);
}else if((Yii::app()->user->type==="Manager")){
$this->menu=array(
	array('label'=>'Manage', 'url'=>array('admin')),
	array('label'=>'List', 'url'=>array('index')),
	array('label'=>'Update', 'url'=>array('update', 'id'=>$model->id)),
	array('label'=>'Create', 'url'=>array('create')),
	array('label'=>'Add Ticket', 'url'=>array('/ticket/create', 'id'=>$model->id)),
	);
}else {
$this->menu=array(
	array('label'=>'Manage', 'url'=>array('admin')),
	array('label'=>'List', 'url'=>array('index')),
	);
	}
?>
<h1 align = left><?php echo $model->cust_industry?><?php echo ','?> <?php echo $model->cust_name?></h1>
<h1>View Customer Corporate #<?php echo $model->id; ?></h1>

<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'id',
		'cust_industry',
		'cust_name',
		'cust_head',
		'cust_addnum',
		'cust_city',
		'cust_country',
		'cust_faxnum',
		'contact_lname',
		'contact_fname',
		'contact_telnum',
		'contact_email',
		'cust_contact',
		'cust_telnum',
	),
)); ?>
